//
//  MZColorDemoView.h
//  MZBaseDemo
//
//  Created by Chris Yang on 2016/12/2.
//  Copyright © 2016年 Chris Yang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MZColorButton;
@class MZColorDemoView;

@protocol MZColorDemoViewDelegate <NSObject>

- (void)colorView:(MZColorDemoView *)view colorButtonClickedAtIndex:(NSInteger)index;

@end

@interface MZColorDemoView : UIView

@property (nonatomic, weak) id<MZColorDemoViewDelegate>delegate;

@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) NSArray<MZColorButton *> *colorButtonArray;
@property (nonatomic, strong) UILabel *noteLabel;

- (void)resetWithTitlePrefixArray:(NSArray<NSString *> *)titlePrefixArray;
- (void)setButtonTitle:(NSString *)title
                 color:(UIColor *)color
               atIndex:(NSInteger)index;

@end
